package fr.upmc.dao;

import org.hibernate.Session;

/* CRUD Operation */
public abstract class DAO<T> {
	
	protected Session session = null;
    
    public DAO(Session session){
            this.session = session;
    }
    
    public abstract long create(T obj);
    
    public abstract T read(long id);
    
    public abstract boolean update(T obj);

    public abstract boolean delete(long id);    
}
